package com.jk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @ClassName ServerBagEntity
 * @Description TODO
 * @Author Administrator
 * @Date 2022/10/19 9:39
 * @Version 1.0
 */
@Data
@TableName("server")
@Document(indexName = "serverBag")
public class ServerBagEntity implements Serializable {

    @Id
    @TableId(type = IdType.AUTO)
    @Field(type = FieldType.Integer,value = "server_id")
    private Integer server_id;

    @TableField(value = "server_name")
    @Field(type = FieldType.Text,value = "server_name")
    private String server_name;


    @TableField(value = "server_img")
    @Field(type = FieldType.Text,value = "server_img")
    private String server_img;

    @Field(type = FieldType.Text,value = "server_object")
    @TableField(value = "server_object")
    private String server_object;

    @Field(type = FieldType.Text,value = "server_label")
    @TableField(value = "server_label")
    private String server_label;


    @TableField(value = "server_state")
    @Field(type = FieldType.Integer,value = "server_state")
    private Integer server_state;

    @Field(value = "server_grade",type = FieldType.Integer)
    @TableField(value = "server_grade")
    private Integer server_grade;

    @TableField(value = "server_label_two")
    @Field(value = "server_label_two",type = FieldType.Text)
    private String server_label_two;


}
